<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- 모바일 기기에 확대/축소 기능을 끄는 역할. native 어플 느낌 -->
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0,user-scalable=no">
<link rel="stylesheet" href="./css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="./css/bootstrap-theme.min.css" type="text/css">
<link rel="stylesheet" href="./css/talkForm.css" type="text/css">
<script type="text/javascript" src="./js/jquery-1.11.1.js"></script>
<script type="text/javascript" src="./js/bootstrap.min.js"></script>

<title>${p_id }님신고</title>
</head>
<body>
	<form role="form" class="reportForm col-lg-12 col-md-12 col-sm-12 col-xs-12" id="myReportForm" action="pop_upReport.do" method="post">
		
		<div class="reportBody form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<dl class="col-lg-12">
				<dt class="warningLabel text-left">${id }님 </dt>
				<dd class="warningBody text-left">사이트 이용약관 및 규칙을 침해한 회원 및 위법행위를 한자 등을 신고할수 있다. </dd>
				<dd class="warningBody text-left">허위 신고를 지속적으로 한 경우 처벌 받을 수 있다. </dd>
			</dl>
		</div>
		<div class="reportBody form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<label for="suspect">피의자</label>
			<input type="text" class="form-control" name="suspect" id="suspect" value="${p_id }" placeholder="Enter email" required readonly>
		</div>
		<div class="reportBody form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<label for="content">신고 내용</label>
			<textarea class="form-control" name="content" id="content" rows="5" placeholder="내용을 입력하세요." required></textarea>
		</div>
		
		<div class="reportFooter form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 text-center">
			<button type="submit" class="btn btn-danger reportBtns">&nbsp;&nbsp;신고&nbsp;&nbsp;</button>
			<button type="button" class="btn btn-default reportBtns" onclick="self.close()">&nbsp;&nbsp;취소&nbsp;&nbsp;</button>
		</div>
	</form>
	
	<c:if test="${success==1 }">
		<script>
				alert("신고가 완료되었습니다.");
				self.close();	
		</script>
	</c:if>

</body>
</html>